package com.ls.fw.data.support.parse;

import java.util.Collection;

/**
 * Maps a byte array to a collection of values to be included in an index.
 */
public interface ByteArrayValueMapper {

    /**
     * Map a byte array to a collection of values. The returned collection can be empty.
     * <p>
     * If a value cannot be mapped as requested, it should log the error and return an empty collection.
     * 
     * @param input byte array to be mapped
     * @return mapped values
     */
    Collection<? extends Object> map(byte[] input);

}
